{% extends "subfactory/base.html" %}
{% block menu %}
        <div>
        <p><h5>{{document.title}}</h5></p>
        <p><a href="{% url 'index' %}">Accueil</a></p>
	<p><a href="#" onClick="document_form.submit()">Enregistrer</a></p>
	<p><a href="{% url 'document' document_id %}">Retour</a></p>
	</div>
{% endblock menu %}
{% block content%}
<form action="{% url 'document_save' document_id %}" method="post" name="document_form">
	{% csrf_token %}
	{%for line in document.lines %}
	<p>{{ line.content.strip }}
	<br/> <textarea class="translationTextarea" name="traduction_{{line.number}}" rows="5" cols="">{{ line.traduction.strip}}</textarea>
	</p>
	{%endfor%}
</form>
{% endblock content%}
